import request from "@/utils/requestBase";

/**
 * @description 根据月份获取民警打卡记录
 */
export function listClockByTime(data: any) {
  return request.get({
    url: "/police-clock/listMonth",
    data,
  });
}

/**
 * @description 民警本月打卡统计
 */
export function clockStat(data: any) {
  return request.get({
    url: "/police-clock/clockDay",
    data,
  });
}

/**
 * @description 民警提交报备
 */
export function policeReport(data: any) {
  return request.post({
    url: "/police-index/policeReport",
    data,
  });
}

/**
 * @description 报备记录列表
 */
export function listReport(data: any) {
  return request.get({
    url: "/police-clock/reportList",
    data,
  });
}

/**
 * @description 打卡记录列表
 */
export function listClock(data: any) {
  return request.get({
    url: "/police-clock/clockList",
    data,
  });
}

/**
 * @description 民警提交打卡
 */
export function policeClockAdd(data: any) {
  return request.post({
    url: "/police-index/policeClock",
    data,
  });
}
